import request from '@/utils/request'

export const listAssess = (search) =>
  request({
    url: '/tAssess',
    method: 'get',
    params: {
      offset: search.offset,
      limit: search.limit,
      name: search.name
    }
  })

  //    queryEATQuestion  queryFXQuestion

  export const queryEATQuestion = (id) =>
  request({
    url:"/tAssessQuestion/queryEATQuestion/"+id,
    method:'get'
  })

  export const queryAllQuestion = () =>
  request({
    url:"/tAssessQuestion/queryAllQuestion",
    method:'get'
  })
 export const queryIdCardByName = (name) =>
  request({
    url:"/queryIdCardByName/"+name,
    method:'post'
  })

  export const queryFXQuestion = () =>
  request({
    url:"/tAssessQuestion/queryFXQuestion",
    method:'get'
  })

  //querySMOQuestion， queryEXEQuestion，

export const queryEXEQuestion = () =>
request({
  url:'/tAssessQuestion/queryEATQuestion',
  method:'get'
})

export const querySMOQuestion = () =>
request({
  url:'/tAssessQuestion/querySMOQuestion',
  method:'get'
})

export const getTAssessById = (id) =>
request({
  url: '/tAssess/getTAssessById',
  method: 'get',
  params: {
    memberId: id
  }
})

<<<<<<< HEAD
export const selectWithSelMeat = (id) =>
request({
  url:'/tAssess/selectWithSelMeat',
  method:'get',
  params:{
    memberId:id
  }
})
=======
export const updateAssessById = (id,answers) =>
request({
  url: '/tAssess/updateTAssess/'+id,
  method: 'put',
  data:answers
})
export const addTAssessById = (idcard,answers) =>
request({
  url: '/tAssess/addTAssess/'+idcard,
  method: 'post',
  data:answers
})


export const smm = (id) =>
  request({
    url: '/smm',
    method: 'post',
    data:{id:id}
  })
>>>>>>> origin/master

